<?php
/**
 * Created by PhpStorm.
 * User: wanglei
 * Date: 2016/4/11
 * Time: 20:53
 * 用户登录注册路由
 */
Route::group([
    //'middleware'=>'',中间件
    'namespace'=>'Auth',//命名空间

],function(){
    Route::get('/auth/login','AuthController@getLogin')->name('web.auth.login');
    Route::post('/auth/login','AuthController@postLogin');
    Route::get('/auth/register','AuthController@getRegister')->name('web.auth.register');
    Route::post('/auth/register','AuthController@postRegister');
    Route::get('/auth/logout','AuthController@getLogout')->name('web.auth.logout');;
});
